<?php
namespace App\Repositories;

use App\Cate;
use App\Repositories\BaseRepository;

class CateRepository {
	use BaseRepository;

	protected $model, $table_name;

	public function __construct(Cate $cate) {
		$this->model = $cate;
		$this->table_name = 'cates';
	}

	protected function searchColumn($query, $where) {
		return $query->where('cate_name', 'like', "%{$where['cate_name']}%");
	}
}